********************************************************************************
***																			 ***
***     				  PERU - NBER COVID19 PROJECT 						 ***
***						   FIRST ROUND WOMEN SURVEY					         ***
***																			 ***
********************************************************************************
/*	
	Do file: 01_hfc_additional
	Author: Gshan Irigoin
	Created on: 09/01/2020
	Last update: 09/01/2020
	Object: this do-file run additional HFC on first round women survey covid19 
	Programs needing: carryforward
*/
********************************************************************************


* initialize Stata
clear all
set more off
set mem 100m

/*** Defines global
	 ***************************************************************************/
	

**********************************
*** Survey and module Duration ***
**********************************
	
	use "$data_folder/survey_data/Mujeres_1Ronda_hpi_pre_checked_deidentified.dta", clear

	preserve
	use "$data_folder/survey_data/Mujeres_1Ronda_pre_checked_deidentified.dta", clear

	**Making education level comparables
	tab educ_woman
	label list educ_woman
	replace educ_woman=5 if educ_woman==6
	replace educ_woman=6 if educ_woman==7 | educ_woman==8

	replace educ_partner=5 if educ_partner==6
	replace educ_partner=6 if educ_partner==7 | educ_partner==8

	label drop educ_woman educ_partner
	label define education 1 "Sin nivel" 2 "Inicial (Pre-escolar)" 3 "Primaria" 4 "Secundaria" ///
			                       5 "Superior no universitaria" 6 "Superior universitaria" 7 "Maestría doctorado"

	label values educ_woman education
	label values educ_partner education		      

	tempfile rdd
	save `rdd'

	restore

	*append using "$data_folder/Mujeres_1Ronda_pre_checked.dta"
	append using "`rdd'"

	**Merging with sector/industry
	preserve
		import excel using "$data_folder/survey_data/work_type_2019_classification_results_JD_GI.xlsx", first sheet(ciiu) clear
		keep id_cases sector22 code22 work_type_2019 sector9
		tempfile sector22
		save `sector22'
	restore

	merge m:1 id_cases using `sector22', gen(_m2)
	order sector22 code22, after(work_type_2019)
	drop _m2

	**Merging with occupation
	preserve
		import excel using "$data_folder/survey_data/work_type_2019_classification_results_JD_GI.xlsx", first sheet(ciuo) clear
		keep id_cases ciuo1_digit
		tempfile occu9
		save `occu9'
	restore

	merge m:1 id_cases using `occu9', gen(_m2)
	order ciuo1_digit, after(sector9)


	**Dropping irrelevant variables
	drop id_cases survey_status


******************************************************************************************************
*************** CORRECTIONS
******************************************************************************************************
	keep if estado_encuesta==1


*1. ubigeo
	
	replace departamento="0" + departamento if length(departamento)==1
	replace provincia="0" + provincia if length(provincia)==1
	
	replace distrito="0" + distrito if length(distrito)==5
	replace distrito_m="0" + distrito_m if length(distrito_m)==5

	replace departamento=substr(distrito,1,2) if length(distrito)==6
	replace provincia=substr(distrito,3,2) if length(distrito)==6

	**Correction. This persons passed lockdown in the same district
	gen same_district=1 if (distrito==distrito_m & traslado_cuarentena==0) & (length(distrito)!=3)
	replace traslado_cuarentena=1 if same_district==1
	replace distrito_m="" if same_district==1 
	drop same_district

	order distrito, before(traslado_cuarentena)
	label var distrito "¿En qué distrito vive actualmente?"


	**Distrito donde pasó la cuarentena
	gen ubigeo=distrito
	replace ubigeo=distrito_m if traslado_cuarentena==0
	label var ubigeo "District of residence while quarantined"

	**Merge to get pob urban and rural
	merge m:1 ubigeo using "$data_folder/censo17/Census2017_distritos_urbanshared.dta", keepusing(pob_urban pob_rural urban_share)
	keep if _merge == 3 | _merge==1
	drop _merge

*2) Other variables
	*number of children during quarantine
	replace children_lockdown=0 if (hh_members==hh_adults) & (hh_members!=. | hh_adults!=.)
	replace daughters=0 if children_lockdown==0
	replace children_noscholar=0 if children_lockdown==0

	**partner living
	
	*old version of rdd
	replace partner_3periods=4 if partner_pre_lockdown==1 & partner_lockdown==1
    replace partner_samecouple=1 if partner_lockdown==1
	
	*hpi form
	replace partner_3periods=4 if sample==2 & partner_hpi==1
	replace partner_samecouple=1 if partner_3periods==4 & sample==2

	order time_with_partner, before(time_with_partner_v2)
	replace time_with_partner=time_with_partner_v2 if missing(time_with_partner)
	drop time_with_partner_v2	 

	order sample, after(caseid)
	order age, after(time_with_partner)
	order age_partner, before(consent)
	
	order mother_tongue, after(hh_rooms_lockdown)
	order educ_woman educ_woman_grade_prim educ_woman_grade_sec, after(mother_tongue) 

	order partner_3periods partner_samecouple partner_brokeup_month, after(enumid)

	order educ_partner  educ_partner_grade_prim educ_partner_grade_sec, after(educ_woman_grade_sec)

	label define sample 1 "RDD" 2 "HPI"
	label values sample sample	

	*order
	order sector9, after(code22)
	rename code22 sector22_id
	format consent %9.2f

	*Dropping preliminary variables deleted
	drop estado_conyugal partner_pre_lockdown partner_lockdown partner_hpi endtime day submissiondate ///
		 wrong_hh  departamento provincia distrito_other distrito_other_m ///
		 work_type_2019 distrito_c distrito_other_c anger1 anger2 anger3 anger1_c anger2_c anger3_c


******************************************************************************************************
*************** RENAME VAR NAMES
******************************************************************************************************
rename distrito district 
rename distrito_m district_m
rename traslado_cuarentena living_quarantine
rename traslado_pre_cuarentena living_pre_quarantine
rename pob_rural pop_rural_district
rename pob_urban pop_urban_district

rename ige_2019 income_2019_woman
rename ige_2019_cat income_2019_woman_r
rename ige_april_may income_2020am_woman
rename ige_april_may_cat income_2020am_woman_r
rename ige_change_t1 income_w_2020am_2019_change
rename ige_june_july income_2020ja_woman
rename ige_june_july_cat income_2020ja_woman_r
rename ige_change_t2 income_w_2020ja_2020am_change

rename ige_2019_partner_cat income_2019_partner_r
rename ige_april_may_partner_cat  income_2020am_partner_r
rename ige_change_t1_m income_p_2020am_2019_change
rename ige_june_july_partner_cat income_2020ja_partner_r
rename ige_change_t2_m income_p_2020ja_2020am_change

rename estado_encuesta survey_status

******************************************************************************************************
*************** ENGLISH LABELING VARIABLES
******************************************************************************************************
label var caseid "Participant id"
label var sample "Type of Sample"
label var enumid "Enumerator id"

label var district "What district do you currently live in?"
lab var living_pre_quarantine "Before quarantine, did you live in the same district where you currently live?"
lab var living_quarantine "Did you spend the quarantine, months of April and May, in the same district where you currently live?"
lab var district_m "In which district did you spend the quarantine, months of April and May?"

label var partner_3periods "Did you live with a partner during these 2020 periods: January-February, April-May, and July-August?"
lab var partner_samecouple "Was it the same couple during periods?"
lab var partner_brokeup_month "What month did you break up with your partner?"
lab var time_with_partner "Since what year have you lived with your last partner or your current partner?"
lab var age "What is your age (completed years)?"
lab var age_partner "How old is your last partner or your current partner?"
lab var consent "Do you accept to participate?" 

lab var alone "Thank you for your cooperation. Is there anyone else in the environment close to your phone at this time?"
lab var family_close "Do you have relatives in the city where you passed the quarantine?"
lab var hh_members "How many people live in the household where you spent most of the quarantine?"
lab var hh_adults "How many adults live in the home where you spent most of the quarantine?"
lab var children_lockdown "How many children lived with you during most of the quarantine?"
lab var daughters "Of these children, how many are women between the ages of 12 and 17?"
lab var children_noscholar "Of these children, how many are between 0 to 4 years old?"
lab var hh_rooms_lockdown "How many rooms does the home have where you spent most of the quarantine?"
lab var mother_tongue "What is your mother tongue with which you learned to speak as a child?"

lab var educ_woman "What is the highest level of education you have achieved?"
lab var educ_woman_grade_prim "What is the last grade you passed at this level (primary)?"
lab var educ_woman_grade_sec "What is the last grade you passed at this level (secondary)?"
lab var educ_partner "What is the highest level of education that your last partner or your current partner has reached?"
lab var educ_partner_grade_prim "What is the last grade your last partner or current partner passed at this level (primary)?"
lab var educ_partner_grade_sec "What is the last grade your last partner or current partner passed at this level (secondary)?"

lab var food_sec_1 "In the months of April and May 2020, did you or someone else in your household stop eating due to lack of food?"
lab var income_2019_woman "In a typical month in 2019, what was your average monthly income? Consider income in cash or species, be these from work, income, remittances, transfers, aid from regular social programs, etc. (Your income ONLY without considering that of other household members)."
lab var income_2019_woman_r "If you do not want to tell us your income, you could tell us in a range of 500 soles where they were found in a common month in 2019, for example, in a range of 1,000 to 1,500"
lab var income_2020am_woman "In April and May 2020, what was your average monthly income? Consider income in cash or species, be these from work, income, remittances, transfers, aid from regular social programs, etc., and not including bonuses and the CTS of quarantine. (Your income ONLY without considering that of other household members)."
lab var income_2020am_woman_r "If you do not want to tell us your income, you could tell us in a range of 500 soles where they were found in a common month in 2019, for example, in a range of 1,000 to 1,500"
lab var income_w_2020am_2019_change "How did your income change from a typical month in 2019 to an average month in April and May 2020?"
lab var income_2020ja_woman "En los meses de <b>julio</b> y <b>agosto de 2020</b>, ¿cuál fue su ingreso mensual promedio? Considere ingresos  en efectivo o especies, sean estos laborales, rentas, remesas, transferencias, ayuda de programas sociales regulares, etc, y sin incluir los bonos y la CTS de la cuarentena. (El ingreso de <b>usted</b> SOLA sin considerar el de otros miembros del hogar )."
lab var income_2020ja_woman_r "If you do not want to tell us your income, you could tell us in a range of 500 soles where they were found in a common month in 2019, for example, in a range of 1,000 to 1,500"
lab var income_w_2020ja_2020am_change "How your income changed from an average month in April and May 2020 to an average month in July and August."
lab var work_periods "In which of the following periods did you work:?"
lab var work_periods_1 "During 2019 (6 months at least)"
lab var work_periods_2 "In April and May 2020"
lab var work_periods_3 "In July and August 2020"
lab var work_periods_4 "Did not work in any of the above options"
lab var work_periods_999 "Do not know"
*lab var work_periods_888 "Refused to answer"
lab var diff_work "In the months of April and May 2020, on average, have you worked more, less or the same hours per day compared to a typical month in 2019?"
lab var home_office "In the months of April and May 2020, did you work from home?"
lab var income_2019_partner_r "In a typical month in 2019, could you tell us in what range is the personal income of your last partner or your current partner? Consider income in cash or species, be these from work, income, remittances, transfers, aid from regular social programs, etc. Only your partner's income without considering other household members. For example, in a range of 1,000 to 1,500"
lab var income_2020am_partner_r "In the months of April and May 2020, could you tell us in what range is your partner's personal income? Consider income in cash or species, be these from work, income, remittances, transfers, aid from regular social programs, etc. and not including bonds and the CTS of quarantine. For example, in a range of 1,000 to 1,500"
lab var income_p_2020am_2019_change "How your partner's income changed from a typical month in 2019 to an average month in April and May 2020."
lab var income_2020ja_partner_r "In the months of July and August 2020, could you tell us where your partner's personal income is? Consider income in cash or species, be these from work, income, remittances, transfers, aid from regular social programs, etc. and not including bonds and the CTS of quarantine. For example, in a range of 1,000 to 1,500"
lab var income_p_2020ja_2020am_change "How your partner's income changed from an average month in April and May 2020 to an average month in July and August."
lab var work_partner "In the months of April and May 2020, did your partner have any paid work? For example: permanent job, own business, or carry out some activity to obtain income in money or in kind"
lab var home_office_partner "In the months of April and May 2020, did your partner work from home?"
lab var benefits_april_may "During the months of April and May 2020, have you or any member of your household received any or some of the following economic benefits: Bonds for vulnerable families, Independent Bonus, Rural Bonus?"
lab var benefits_april_may_value "How much money did your household receive from this (these) benefit (s)?"
lab var work_member "In 2019, which household member earned the most income?"
lab var sector22 "Industry/sector of top earner in the house during 2019 (22 industries)"
lab var sector22_id "Industry/sector id"
lab var sector9 "Industry/sector of top earner in the house during 2019 (9 industries)"

lab var search_job "In the months of April and May 2020, did you or someone in your household look for another job or other activity to generate money?"
lab var start_job "… started another job or activity to generate money?"
lab var savings "…resorted to spending part of your savings to cover your household's basic needs?"
lab var borrow_money "…money was loaned to cover the basic needs of your household?"
lab var sold_belongings "…sold some of your belongings to cover the basic needs of your home?"
lab var family_help "…asked for help to other relatives to meet the basic needs of your household?"
lab var sick_hurt "…became ill and / or injured and were unable to receive medical care due to quarantine restrictions?"
lab var lost_job "…lost his job? Includes perfect suspension of work (suspension without pay)"
lab var money_concern "In your opinion, in the months of April and May 2020, how often has your partner worried about money?"

lab var pre_lockdown_activities "In a typical week in 2019, how many days did you or other members of your household leave your home to go to the market, grocery store or supermarket?"
lab var lockdown_activities "In an average common week in the months of April and May 2020, how many days did you or other members of your household leave your home to go to the market, grocery store or supermarket?"
lab var post_lockdown_activities "In an average common week in the months of July and August 2020, how many days did you or other members of your household leave your home to go to the market, grocery store or supermarket?"
lab var pre_lockdown_socialize "In a typical week in 2019, how many days did you go out to visit friends / family or socialize?"
lab var lockdown_socialize "In an average common week in April and May 2020, how many days did you go out to visit friends / family or socialize?"
lab var post_lockdown_socialize "In an average common week in July and August 2020, how many days did you go out to visit friends / family or socialize?"

lab var health "In the months of April and May, on average, compared to a common month in 2019, how would you describe your health status?"
lab var couple_smoke_change "In the months of April and May 2020, on average, did your partner smoke more, the same or fewer cigarettes compared to a typical month in 2019?"
lab var alcohol_partner_2019 "In a typical month in 2019, how often did your partner drink alcoholic beverages?"
lab var alcohol_partner_aprmay "In April and May 2020, how often did your partner drink alcoholic beverages?"
lab var alcohol_partner_intensity_change "In the months of April and May 2020, on average, did your partner get more, equal or less drunk compared to a common month in 2019?"
lab var april_may_sick "In the months of April and May 2020, did any member of your household get sick?"
lab var medicalcare_covid "In the months of April and May 2020, have you or any household member been diagnosed with COVID-19 or do you think you had it?"
lab var hard_covid "Was this person hospitalized for covid19 or died from it?"
lab var anxiety "In the months of April and May 2020, on average, did you feel more, the same or less anxiety than in a typical month in 2019?"
lab var sentimental "In the months of April and May 2020, on average, did you feel more, the same or less sentimental than in a typical month in 2019?"
lab var loneliness "In the months of April and May 2020, on average, did you feel more, the same or less loneliness than in a typical month in 2019?"
lab var rage "In the months of April and May 2020, on average, did you have more, the same or less trouble controlling your anger than in a typical month in 2019?"
lab var raise_voice "In the months of April and May 2020, on average, did you feel more, equal or less urge to raise your voice or shout than in a typical month in 2019?"
lab var violence "In the months of April and May 2020, on average, did you feel more, the same or less impulse to act violently than in a typical month in 2019?"

lab var social_norms_1 "How much do you agree with the following statement? For the woman, there must first be her role as mother and wife, and then her own dreams or personal goals"
lab var social_norms_2 "How much do you agree with the following statement? The violence between a husband and his wife is something private and no one should interfere"

lab var respect "In the months of April and May 2020, in your relationship, how often did your partner respect your wishes?"
lab var hours_partner_pre_lockdown "In a typical month in 2019, on an average day, how many hours did you and your partner spend together?"
lab var hours_partner_lockdown "In the months of April and May 2020, on an average day, how many hours did you and your partner spend together?"
lab var couple_relationship "In the months of April and May 2020, on average, compared to a common month in 2019, how did your relationship with your partner change?"

lab var someone_around "Interviewer answer: Is there any other adult or child who can listen to the interview? For example, the partner or someone else who may take away the privacy of the interview. [Surveyor]: Remember that you cannot start this module in a public space: street, buses, shops, etc."

lab var ipv_v1_1 "During the year 2019, how often did you have strong arguments with your partner?"
lab var ipv_v1_1_c "During the year 2019, how often did you have strong arguments with your partner?"
lab var ipv_v1_1_cc "During the year 2019, did you ever have strong arguments with your partner?"
lab var ipv_v1_1_cc1 "During April and May 2019, how often did this happen?"
lab var ipv_v1_1_cc2 "During July and August of the year 2019, how often did this happen?"	
lab var ipv_v1_2 "During April and May of this year (2020), did you ever have strong argument (s) with your partner?"
lab var ipv_v1_3 "During April and May of this year, how often?"
lab var ipv_v1_4 "In April and May, did this happen more, the same or less frequently than in 2019?"
lab var ipv_v1_4_c "During April and May 2020, did this happen with greater, less or equal frequency than in the same months of 2019?"
lab var ipv_v1_5 "During July and August of this year (2020), did you ever suffer from this situation?"
lab var ipv_v1_6 "During July and August of this year, how often?"
lab var ipv_v1_7 "In July and August, did this happen more, the same or less frequently than in 2019?"
lab var ipv_v1_7_c "During July and August 2020, did this happen with greater, lesser or equal frequency than in the same months of 2019?"

lab var ipv_v2_1 "During the year 2019, how often did your partner control you, restrict your cell phone, or prevent you from speaking/contacting your family members?"
lab var ipv_v2_1_c "During the year 2019, how often did your partner control you, restrict your cell phone, or prevent you from speaking/contacting your family members?"
lab var ipv_v2_1_cc "During the year 2019, did your partner ever control you, restrict your cell phone, or prevent you from speaking/contacting your family members?"
lab var ipv_v2_1_cc1 "During April and May 2019, how often did this happen?"
lab var ipv_v2_1_cc2 "During July and August of the year 2019, how often did this happen?"	
lab var ipv_v2_2 "During April and May of this year (2020), did your partner ever control you, restrict your cell phone, or prevent you from speaking/contacting your family members?"
lab var ipv_v2_3 "During April and May of this year, how often?"
lab var ipv_v2_4 "In April and May, did this happen more, the same or less frequently than in 2019?"
lab var ipv_v2_4_c "During April and May 2020, did this happen with greater, less or equal frequency than in the same months of 2019?"
lab var ipv_v2_5 "During July and August of this year (2020), did you ever suffer from this situation?"
lab var ipv_v2_6 "During July and August of this year, how often?"
lab var ipv_v2_7 "In July and August, did this happen more, the same or less frequently than in 2019?"
lab var ipv_v2_7_c "During July and August 2020, did this happen with greater, lesser or equal frequency than in the same months of 2019?"

lab var ipv_v3_1 "During 2019, how often did your partner say or do things to you to humiliate you in front of others?"
lab var ipv_v3_1_c "During 2019, how often did your partner say or do things to you to humiliate you in front of others?"
lab var ipv_v3_1_cc "During the year 2019, did your partner ever say or do things to you to humiliate you in front of others?"
lab var ipv_v3_1_cc1 "During April and May 2019, how often did this happen?"
lab var ipv_v3_1_cc2 "During July and August of the year 2019, how often did this happen?"	
lab var ipv_v3_2 "During April and May of this year (2020), did your partner ever say or do things to you to humiliate you in front of others?"
lab var ipv_v3_3 "During April and May of this year, how often?"
lab var ipv_v3_4 "In April and May, did this happen more, the same or less frequently than in 2019?"
lab var ipv_v3_4_c "During April and May 2020, did this happen with greater, less or equal frequency than in the same months of 2019?"
lab var ipv_v3_5 "During July and August of this year (2020), did you ever suffer from this situation?"
lab var ipv_v3_6 "During July and August of this year, how often?"
lab var ipv_v3_7 "In July and August, did this happen more, the same or less frequently than in 2019?"
lab var ipv_v3_7_c "During July and August 2020, did this happen with greater, lesser or equal frequency than in the same months of 2019?"

lab var ipv_v4_1 "During 2019, how often did your partner insult, yell, curse, or break something that belonged to you, or threaten to hit you or throw something at you?"
lab var ipv_v4_1_c "During 2019, how often did your partner insult, yell, curse, or break something that belonged to you, or threaten to hit you or throw something at you?"
lab var ipv_v4_1_cc "During the year 2019, did your partner ever insult you, yell at, curse, or break something that belonged to you, or threatened to hit you or throw something at you?"
lab var ipv_v4_1_cc1 "During April and May 2019, how often did this happen?"
lab var ipv_v4_1_cc2 "During July and August of the year 2019, how often did this happen?"	
lab var ipv_v4_2 "During April and May of this year (2020), has your partner ever insulted you, yelled at, cursed, or broke something that belonged to you, or threatened to hit you or throw something at you?"
lab var ipv_v4_3 "During April and May of this year, how often?"
lab var ipv_v4_4 "In April and May, did this happen more, the same or less frequently than in 2019?"
lab var ipv_v4_4_c "During April and May 2020, did this happen with greater, less or equal frequency than in the same months of 2019?"
lab var ipv_v4_5 "During July and August of this year (2020), did you ever suffer from this situation?"
lab var ipv_v4_6 "During July and August of this year, how often?"
lab var ipv_v4_7 "In July and August, did this happen more, the same or less frequently than in 2019?"
lab var ipv_v4_7_c "During July and August 2020, did this happen with greater, lesser or equal frequency than in the same months of 2019?"

lab var ipv_v5_1 "During 2019, how often did your partner push, shake, or throw something at you?"
lab var ipv_v5_1_c "During 2019, how often did your partner push, shake, or throw something at you?"
lab var ipv_v5_1_cc "During the year 2019, did your partner ever push, shake or throw something at you?"
lab var ipv_v5_1_cc1 "During April and May 2019, how often did this happen?"
lab var ipv_v5_1_cc2 "During July and August of the year 2019, how often did this happen?"	
lab var ipv_v5_2 "During April and May of this year (2020), did your partner ever push, shake or throw something at you?"
lab var ipv_v5_3 "During April and May of this year, how often?"
lab var ipv_v5_4 "In April and May, did this happen more, the same or less frequently than in 2019?"
lab var ipv_v5_4_c "During April and May 2020, did this happen with greater, less or equal frequency than in the same months of 2019?"
lab var ipv_v5_5 "During July and August of this year (2020), did you ever suffer from this situation?"
lab var ipv_v5_6 "During July and August of this year, how often?"
lab var ipv_v5_7 "In July and August, did this happen more, the same or less frequently than in 2019?"
lab var ipv_v5_7_c "During July and August 2020, did this happen with greater, lesser or equal frequency than in the same months of 2019?"

lab var ipv_v6_1 "During 2019, how often did your partner slap or twist your arm?" 
lab var ipv_v6_1_c "During 2019, how often did your partner slap or twist your arm?"
lab var ipv_v6_1_cc "During 2019, has your partner ever slapped or twisted your arm?"
lab var ipv_v6_1_cc1 "During April and May 2019, how often did this happen?"
lab var ipv_v6_1_cc2 "During July and August of the year 2019, how often did this happen?"	
lab var ipv_v6_2 "During April and May of this year (2020), has your partner ever slapped you or twisted your arm?"
lab var ipv_v6_3 "During April and May of this year, how often?"
lab var ipv_v6_4 "In April and May, did this happen more, the same or less frequently than in 2019?"
lab var ipv_v6_4_c "During April and May 2020, did this happen with greater, less or equal frequency than in the same months of 2019?"
lab var ipv_v6_5 "During July and August of this year (2020), did you ever suffer from this situation?"
lab var ipv_v6_6 "During July and August of this year, how often?"
lab var ipv_v6_7 "In July and August, did this happen more, the same or less frequently than in 2019?"
lab var ipv_v6_7_c "During July and August 2020, did this happen with greater, lesser or equal frequency than in the same months of 2019?"

lab var ipv_v7_1 "During 2019, how often did your partner hit you with a fist or something that could hurt you?"
lab var ipv_v7_1_c "During 2019, how often did your partner hit you with a fist or something that could hurt you?"
lab var ipv_v7_1_cc "During the year 2019, did your partner ever hit you with a fist or something that could hurt you?"
lab var ipv_v7_1_cc1 "During April and May 2019, how often did this happen?"
lab var ipv_v7_1_cc2 "During July and August of the year 2019, how often did this happen?"	
lab var ipv_v7_2 "During April and May of this year (2020), did your partner ever hit you with a fist or something that could hurt you?"
lab var ipv_v7_3 "During April and May of this year, how often?"
lab var ipv_v7_4 "In April and May, did this happen more, the same or less frequently than in 2019?"
lab var ipv_v7_4_c "During April and May 2020, did this happen with greater, less or equal frequency than in the same months of 2019?"
lab var ipv_v7_5 "During July and August of this year (2020), did you ever suffer from this situation?"
lab var ipv_v7_6 "During July and August of this year, how often?"
lab var ipv_v7_7 "In July and August, did this happen more, the same or less frequently than in 2019?"
lab var ipv_v7_7_c "During July and August 2020, did this happen with greater, lesser or equal frequency than in the same months of 2019?"

lab var ipv_v8_1 "During 2019, how often has your partner used physical force to force you to have sex, even if you did not want to?"
lab var ipv_v8_1_c "During 2019, how often has your partner used physical force to force you to have sex, even if you did not want to?"
lab var ipv_v8_1_cc "During the year 2019, has your partner ever used physical force to force you to have sex, even if you did not want to?"
lab var ipv_v8_1_cc1 "During April and May 2019, how often did this happen?"
lab var ipv_v8_1_cc2 "During July and August of the year 2019, how often did this happen?"	
lab var ipv_v8_2 "During April and May of this year (2020), has your partner ever used physical force to force you to have sex, even though you did not want to?"
lab var ipv_v8_3 "During April and May of this year, how often?"
lab var ipv_v8_4 "In April and May, did this happen more, the same or less frequently than in 2019?"
lab var ipv_v8_4_c "During April and May 2020, did this happen with greater, less or equal frequency than in the same months of 2019?"
lab var ipv_v8_5 "During July and August of this year (2020), did you ever suffer from this situation?"
lab var ipv_v8_6 "During July and August of this year, how often?"
lab var ipv_v8_7 "In July and August, did this happen more, the same or less frequently than in 2019?"
lab var ipv_v8_7_c "During July and August 2020, did this happen with greater, lesser or equal frequency than in the same months of 2019?"

lab var ipv_no_privacy "Interviewer: In this module on violence and anger, did anyone listen to, interrupt, or take privacy away from the interview?"


lab var institution	"Do you know any services or institutions that protect women? Could you tell me which ones"
lab var institution_1 "Linea 100/Chat 100"
lab var institution_2 "Ministerio de la Mujer y Poblaciones Vulnerables (MIMP) /Centro Emergencia Mujer (CEM)"
lab var institution_3 "Comisaría/Juzgado/Fiscalía/Ministerio Público"
lab var institution_4 "Defensoría Municipal de la Niña, Niño y del Adolescente (DEMUNA)"
lab var institution_5 "Establecimiento de Salud"
lab var institution_6 "Other(Specify)"
lab var institution_7 "Do not know"
lab var institution_999 "Do not know"
lab var institution_888 "Refused to answer"


lab var support_q "During April and May 2020, were you able to seek help in case of abuse?"
lab var support_q_c "During April and May 2020, were you able to seek help in case of abuse?"
lab var support_change "Compared to 2019, was it more, the same or less difficult?"
lab var support_who "Who did you ask for help?"
lab var support_who_1 "Family"
lab var support_who_2 "Friends"
lab var support_who_3 "Police"
lab var support_who_4 "Court"
lab var support_who_5 "Prosecutor's office"
lab var support_who_6 "Defensoria Municipal (Demuna)"
lab var support_who_7 "MIMP/CEMs/Linea100/Chat100"
lab var support_who_8 "Defensoria del Pueblo"
lab var support_who_9 "Establecimiento de Salud"
lab var support_who_10 "Other"
lab var support_who_999 "Do not know"
lab var support_who_888 "Refused to answer"

lab var why_notsupport "What is or was the main reason you did not seek help?"
lab var why_notsupport_1 "I didn't know where to go"
lab var why_notsupport_2 "It was not necessary"
lab var why_notsupport_3 "Useless"
lab var why_notsupport_4 "Life things"
lab var why_notsupport_5 "Fear of divorce / separation"
lab var why_notsupport_6 "Fear that he will hit his children again"
lab var why_notsupport_7 "Fear of causing trouble for the person who hit you"
lab var why_notsupport_8 "Shame"
lab var why_notsupport_9 "Was my fault"
lab var why_notsupport_10 "Because of the pandemic/restrictions/quarantine"
lab var why_notsupport_11 "Other"
lab var why_notsupport_999 "Do not know"
lab var why_notsupport_888 "Refused to answer"


lab var survey_status "Survey Status"
lab var peruvian "Nationality"
lab var peruvian_other "Other Nationality"

lab var ubigeo "District code of residence during quarantine"
lab var pop_urban_district "Total urban population (ubigeo level)"
lab var pop_rural_district "Total rural population (ubigeo level)"


******************************************************************************************************
*************** ENGLISH LABELING CHOICES
******************************************************************************************************
order living_pre_quarantine living_pre_quarantine , after(district)

*order ipv
order ipv_v1_1 ipv_v1_1_c ipv_v1_1_cc ipv_v1_1_cc1 ipv_v1_1_cc2 ipv_v1_2 ipv_v1_3 ipv_v1_4 ipv_v1_4_c ///
      ipv_v1_5 ipv_v1_6 ipv_v1_7 ipv_v1_7_c, after(someone_around) 

order ipv_v2_1 ipv_v2_1_c ipv_v2_1_cc ipv_v2_1_cc1 ipv_v2_1_cc2 ipv_v2_2 ipv_v2_3 ipv_v2_4 ipv_v2_4_c ///
      ipv_v2_5 ipv_v2_6 ipv_v2_7 ipv_v2_7_c, after(ipv_v1_7_c) 

order ipv_v3_1 ipv_v3_1_c ipv_v3_1_cc ipv_v3_1_cc1 ipv_v3_1_cc2 ipv_v3_2 ipv_v3_3 ipv_v3_4 ipv_v3_4_c ///
      ipv_v3_5 ipv_v3_6 ipv_v3_7 ipv_v3_7_c, after(ipv_v2_7_c) 

order ipv_v4_1 ipv_v4_1_c ipv_v4_1_cc ipv_v4_1_cc1 ipv_v4_1_cc2 ipv_v4_2 ipv_v4_3 ipv_v4_4 ipv_v4_4_c ///
      ipv_v4_5 ipv_v4_6 ipv_v4_7 ipv_v4_7_c, after(ipv_v3_7_c) 

order ipv_v5_1 ipv_v5_1_c ipv_v5_1_cc ipv_v5_1_cc1 ipv_v5_1_cc2 ipv_v5_2 ipv_v5_3 ipv_v5_4 ipv_v5_4_c ///
      ipv_v5_5 ipv_v5_6 ipv_v5_7 ipv_v5_7_c, after(ipv_v4_7_c) 

order ipv_v6_1 ipv_v6_1_c ipv_v6_1_cc ipv_v6_1_cc1 ipv_v6_1_cc2 ipv_v6_2 ipv_v6_3 ipv_v6_4 ipv_v6_4_c ///
      ipv_v6_5 ipv_v6_6 ipv_v6_7 ipv_v6_7_c, after(ipv_v5_7_c) 

order ipv_v7_1 ipv_v7_1_c ipv_v7_1_cc ipv_v7_1_cc1 ipv_v7_1_cc2 ipv_v7_2 ipv_v7_3 ipv_v7_4 ipv_v7_4_c ///
      ipv_v7_5 ipv_v7_6 ipv_v7_7 ipv_v7_7_c, after(ipv_v6_7_c) 

order ipv_v8_1 ipv_v8_1_c ipv_v8_1_cc ipv_v8_1_cc1 ipv_v8_1_cc2 ipv_v8_2 ipv_v8_3 ipv_v8_4 ipv_v8_4_c ///
      ipv_v8_5 ipv_v8_6 ipv_v8_7 ipv_v8_7_c, after(ipv_v7_7_c) 



** I **
label define yesno 1 "Yes" 0 "No"

label values partner_samecouple  yesno
label values consent   			 yesno
label values alone   			 yesno
label values living_pre_quarantine yesno
label values living_quarantine  yesno
label values family_close  yesno
label values food_sec_1 yesno
label values home_office  yesno
label values work_partner  yesno
label values home_office_partner  yesno
label values benefits_april_may yesno
label values search_job yesno
label values start_job  yesno
label values savings  yesno
label values borrow_money  yesno
label values sold_belongings  yesno
label values family_help  yesno
label values sick_hurt yesno
label values lost_job yesno
label values april_may_sick  yesno
label values medicalcare_covid yesno
label values hard_covid  yesno
label values someone_around yesno

label values ipv_v1_2 yesno
label values ipv_v1_5 yesno
label values ipv_v2_2 yesno
label values ipv_v2_5 yesno
label values ipv_v3_2 yesno
label values ipv_v3_5 yesno
label values ipv_v4_2 yesno
label values ipv_v4_5 yesno
label values ipv_v5_2 yesno
label values ipv_v5_5 yesno
label values ipv_v6_2 yesno
label values ipv_v6_5 yesno
label values ipv_v7_2 yesno
label values ipv_v7_5 yesno
label values ipv_v8_2 yesno
label values ipv_v8_5 yesno
label values ipv_no_privacy yesno

label values support_q yesno
label values support_q_c yesno
label values peruvian yesno

** II **
label drop partner_3periods
label define partner_3periods 0 "Always single" 1 "Only January-February" 2 "Only April-May" ///
							  3 "Only July-August" 4 "January-February, April-May, July-August" ///
							  5 "January-February, April-May" 6 "January-February, July-August" ///
							  7 "April-May, July-August" 888 "Refused to answer" 999 "Do not know"

label values partner_3periods partner_3periods


label drop partner_brokeup_month
label define partner_brokeup_month 1 "January" 2 "February" 3 "March" 4 "April" 5 "May" 6 "June" ///
								   7 "July" 8 "August" 9 "Never broke up. Only travelled" 888 "Refused to answer" 999 "Do not know" 				
label values partner_brokeup_month partner_brokeup_month


label drop mother_tongue
label define mother_tongue 1 "Quechua" 2 "Aymar" 3 "Amazonic" 4 "Other native language" 5 "Spanish" ///
	                       6 "Foreign language" 7 "Other" 888 "Refused to answer" 999 "Do not know"
label values mother_tongue mother_tongue


label drop education
label define education 1 "No level" 2 "Initial(kinder)" 3 "Primary" 4 "Secondary" ///
					   5 "Terciary (university)" 6 "Terciary (institute)" 7 "Master/PhD" ///
					   888 "Refused to answer" 999 "Do not know"
label values educ_woman education
label values educ_partner education


label define income_change 1 "Decreased more than half" 2 "Decreased by half" 3 "Decreased less than half" ///
						   4 "Equal" 5 "Increased less than half" 6 "Increased by half" 7 "Increased more than half" ///
						   888 "Refused to answer" 999 "Do not know"
label values income_w_2020am_2019_change income_change
label values income_w_2020ja_2020am_change	 income_change
label values income_p_2020am_2019_change income_change
label values income_p_2020ja_2020am_change income_change


label drop diff_work 
label define diff_work 1 "Less" 2 "Equal" 3 "More" 888 "Refused to answer" 999 "Do not know"
label values diff_work diff_work


label drop work_member
label define work_member 1 "You" 2 "Partner" 3 "Father/Mother of you" 4 "Father/Mother of partner" 5 "Child" ///
						 6 "Another household member" 7 "Both (same business)" 888 "Refused to answer" 999 "Do not know"
label values work_member work_member


label define frequency 1 "Never" 2 "Rarely" 3 "Sometimes" 4 "Frequently" 5 "Always" 888 "Refused to answer" 999 "Do not know"
label values money_concern frequency
label values respect frequency


label drop health
label define health 1 "Got a lot worse" 2 "Got worse" 3 "Equal" 4 "Got better" 5 "Got a lot better" 888 "Refused to answer" 999 "Do not know"
label values health health


label drop couple_smoke_change
label define couple_smoke_change 0 "He does not smoke during these periods" 1 "Less" 2 "Equal" 3 "More" ///
                                 888 "Refused to answer" 999 "Do not know"
label values couple_smoke_change couple_smoke_change                                 


label define alcohol 1 "Never" 2 "Once in a while" 3 "1-3 times per month" 4 "1-2 times per month" 5 "Almost every day/Every day" ///
					 888 "Refused to answer" 999 "Do not know"
label values alcohol_partner_2019 alcohol
label values alcohol_partner_aprmay alcohol 					 


label define alcohol_change 1 "Less" 2 "Equal" 3 "More" 4 "He never got drunk in these periods" 888 "Refused to answer" 999 "Do not know"
label values alcohol_partner_intensity_change alcohol_change


label define moreless 1 "Less" 2 "Equal" 3 "More" 888 "Refused to answer" 999 "Do not know"
label values anxiety moreless 
label values sentimental moreless
label values loneliness moreless
label values rage moreless
label values raise_voice  moreless
label values violence moreless


label define agree 1 "Strongly disagree" 2 "Disagree" 3 "Agree" 4 "Strongly agree" 888 "Refused to answer" 999 "Do not know"
label values social_norms_1 agree
label values social_norms_2 agree


label define time_spent 1 "Hardly one hour" 2 "Few hours a day" 3 "Half of the day" 4 "Most of the hours" 5 "Almost all day" ///
						888 "Refused to answer" 999 "Do not know"
label values hours_partner_pre_lockdown time_spent
label values hours_partner_lockdown time_spent


label drop couple_relationship
label define couple_relationship 1 "Worse: there are more tensions" 2 "Equal: There has been no change" 3 "Better: There is more union" ///
							   888 "Refused to answer" 999 "Do not know"
label values couple_relationship couple_relationship


label define ipv_old_1 1 "It didn't happen in 2019" 2 "One time" 3 "Sometimes" 4 "Many times" 888 "Refused to answer" 999 "Do not know"
forvalues i=1/8 {
	label values ipv_v`i'_1 ipv_old_1	
	label values ipv_v`i'_1_cc ipv_old_1
}



label define ipv_old_1_c 1 "It didn't happen in 2019" 2 "At least once a month (12+ times)" 3 "At least once every two months (6-12 times)" ///
						 4 "At least once every 6 months" 5 "Only one time" 888 "Refused to answer" 999 "Do not know"
forvalues i=1/8 {
	label values ipv_v`i'_1_c ipv_old_1_c
}


label define ipv2019_cc1 1 "One time" 2 "Sometimes" 3 "Many times" 888 "Refused to answer" 999 "Do not know"
forvalues i=1/8 {
	label values ipv_v`i'_1_c ipv_old_1_c	
	label values ipv_v`i'_3 ipv_old_1_c
	label values ipv_v`i'_6 ipv_old_1_c
}


label define ipv_cc1 1 "It did not happen in Apr-May 2019" 2 "One time" 3 "Sometimes" 4 "Many times" 888 "Refused to answer" 999 "Do not know"
forvalues i=1/8 {
	label values ipv_v`i'_1_cc1  ipv_old_1_c
}

label define ipv_cc2 1 "It did not happen in Jul-Aug 2019" 2 "One time" 3 "Sometimes" 4 "Many times" 888 "Refused to answer" 999 "Do not know"
forvalues i=1/8 {
	label values ipv_v`i'_1_cc2  ipv_old_1_c
}

label define ipv_change 1 "Less" 2 "Equal" 3 "Many times" 888 "Refused to answer" 999 "Do not know"
forvalues i=1/8 {
	label values ipv_v`i'_4  ipv_change
	label values ipv_v`i'_4_c  ipv_change
	label values ipv_v`i'_7  ipv_change
	label values ipv_v`i'_7_c ipv_change
}

label drop support_change
label define support_change 1 "Less difficult" 2 "Equal" 3 "More difficult" 888 "Refused to answer" 999 "Do not know"
label values support_change support_change



label define survey_status 1 "Completed"
label values survey_status survey_status							

******************************************************************************************************
*************** SAVING
******************************************************************************************************

save "$data_folder/survey_data/Mujeres_1Ronda_RDD_HPI_checked_completed.dta", replace
